<?php	
// Database maximums
define("MAXMEMBERNAME", "20");
define("MAXTEAMNAME", "50");

define("MAXVALUE", "50");
define("MAXTRANSFERS", "6");
define("ENTRYFEE", "5");
define("TRANSFERFEE", "1");
define("MAXPLAYERS", "17");	// 11 plus 6 subs
define("PLAYERSPERTEAM", "11");

//define("STARTDAY", "23");	// Scores are done every wednesday, this date defines week1 scores
//define("STARTMONTH", "8");
//define("STARTYEAR", "2006");

define("RED", "<font color=\"#FF0033\">");
define("BLUE", "<font color=\"#0033FF\">");
define("GREY", "<font color=\"#0A626A\">");
define("YELLOW", "<font color=\"#FAF8CC\">");

// Ratios must total 1
define("FIRST_PLACE_RATIO", "0.45");
define("SECOND_PLACE_RATIO", "0.25");
define("THIRD_PLACE_RATIO", "0.15");
define("FOURTH_PLACE_RATIO", "0.1");
define("FIFTH_PLACE_RATIO", "0.05");

define("TEAM_OF_THE_MONTH", 5);
define("TANDBERG_CUP", 25);

// DB_TransferPlayer.php
define("OK", "0");
define("ENTRY_NOT_PRESENT", "1");
define("ENTRY_THIS_ALREADY_PRESENT", "2");
define("ENTRY_FUTURE_ALREADY_PRESENT", "3");

// DB_Addscores.php
define("OK", "0");
define("ENTRY_NOT_PRESENT", "1");
define("ENTRY_THIS_ALREADY_PRESENT", "2");
define("ENTRY_FUTURE_ALREADY_PRESENT", "3");

define("IN", "0");
define("OUT", "1");
define("CURRENT", "2");

function getPlayerCodeVariable($count)
{
	if ($count < 10)
		return "playerCode0".$count;
	else
		return "playerCode".$count;
}
function getPlayerWeekInVariable($count)
{
	if ($count < 10)
		return "playerWeekIn0".$count;
	else
		return "playerWeekIn".$count;
}
function getPlayerWeekOutVariable($count)
{
	if ($count < 10)
		return "playerWeekOut0".$count;
	else
		return "playerWeekOut".$count;
}
function getWeekVariable($count)
{
	if ($count < 10)
		return "week0".$count;
	else
		return "week".$count;
}
function getCaptainVariable($week)
{
	if ($week < 10)
		return "captainWeek0".$week;
	else
		return "captainWeek".$week;
}


?>